--The master behind all spells.  To add a custom spell:
--first you need to discover its texture, and add it in the format below.  if it is for another class, you may need to make a table for that class.
--the "name" entry is the english name
-- the "duration" entry is the duration, in either seconds or minutes, whichever applicable.  note that the way that the addon parses duration is it chooses the number closest to this one.  choose it wisely
-- the "multiplier" entry is 1 for seconds, or 60 for minutes
-- then you have to add it to a table in the DefineSpells function, so the addon knows how to track it.  debuff/pet/heal/enslave
-- right now the abbreviations mean nothing; they might in a future patch

DoTimer_SpellData = { --a list of textures (same in all locales!) and the english name equivilents.  used to free the chore of localizing the spell names.  also provides the average duration and the second/minute multiplier
	["WARLOCK"] = {
		["Interface\\Icons\\Spell_Shadow_CurseOfTounges"] = {
			["name"] = "语言诅咒",
			["duration"] = 30,
			["multiplier"] = 1,
		},
		["Interface\\Icons\\Spell_Shadow_AbominationExplosion"] = {
			["name"] = "腐蚀术",
			["duration"] = 12,
			["multiplier"] = 1,
		},
		["Interface\\Icons\\Spell_Fire_Immolation"] = {
			["name"] = "献祭",
			["duration"] = 15,
			["multiplier"] = 1,
		},
		["Interface\\Icons\\Spell_Shadow_SummonInfernal"] = {
			["name"] = "地狱火",
			["duration"] = 5,
			["multiplier"] = 60,
		},
		["Interface\\Icons\\Spell_Shadow_DeathCoil"] = {
			["name"] = "死亡缠绕",
			["duration"] = 3,
			["multiplier"] = 1,
		},
		["Interface\\Icons\\Spell_Shadow_AuraOfDarkness"] = {
			["name"] = "厄运诅咒",
			["duration"] = 1,
			["multiplier"] = 60,
		},
		["Interface\\Icons\\Spell_Shadow_EnslaveDemon"] = {
			["name"] = "奴役恶魔",
			["duration"] = 5,
			["multiplier"] = 60,
		},
		["Interface\\Icons\\Spell_Shadow_MindSteal"] = {
			["name"] = "诱惑",
			["duration"] = 15,
			["multiplier"] = 1,
		},
		["Interface\\Icons\\Spell_Shadow_CurseOfSargeras"] = {
			["name"] = "痛苦诅咒",
			["duration"] = 24,
			["multiplier"] = 1,
		},
		["Interface\\Icons\\Spell_Shadow_CurseOfMannoroth"] = {
			["name"] = "虚弱诅咒",
			["duration"] = 2,
			["multiplier"] = 60,
		},
		["Interface\\Icons\\Spell_Shadow_UnholyStrength"] = {
			["name"] = "鲁莽诅咒",
			["duration"] = 2,
			["multiplier"] = 60,
		},
		["Interface\\Icons\\Spell_Shadow_CurseOfAchimonde"] = {
			["name"] = "暗影诅咒",
			["duration"] = 5,
			["multiplier"] = 60,
		},
		["Interface\\Icons\\Spell_Shadow_Cripple"] = {
			["name"] = "放逐术",
			["duration"] = 20,
			["multiplier"] = 1,
		},
		["Interface\\Icons\\Spell_Shadow_ChillTouch"] = {
			["name"] = "元素诅咒",
			["duration"] = 5,
			["multiplier"] = 60,
		},
		["Interface\\Icons\\Spell_Shadow_MindRot"] = {
			["name"] = "法术封锁",
			["duration"] = 8,
			["multiplier"] = 1,
		},
		["Interface\\Icons\\Spell_Shadow_Possession"] = {
			["name"] = "恐惧术",
			["duration"] = 15,
			["multiplier"] = 1,
		},
		["Interface\\Icons\\Spell_Shadow_DeathScream"] = {
			["name"] = "恐惧嚎叫",
			["duration"] = 16,
			["multiplier"] = 1,
		},
		["Interface\\Icons\\Spell_Fire_Fireball"] = {
			["name"] = "燃烧",
		},
		["Interface\\Icons\\Spell_Shadow_Requiem"] = {
			["name"] = "生命虹吸",
			["duration"] = 30,
			["multiplier"] = 1,
		},
		["Interface\\Icons\\Spell_Shadow_GrimWard"] = {
			["name"] = "疲劳诅咒",
			["duration"] = 12,
			["multiplier"] = 1,
		},
		["Interface\\Icons\\Spell_Shadow_BurningSpirit"] = {
			["name"] = "生命分流",
		},
	},
	["PRIEST"] = {
		["Interface\\Icons\\Spell_Nature_Slow"] = {
			["name"] = "束缚亡灵",
			["duration"] = 30,
			["multiplier"] = 1,
		},
		["Interface\\Icons\\Spell_Holy_MindSooth"] = {
			["name"] = "安抚心灵",
			["duration"] = 15,
			["multiplier"] = 1,
		},
		["Interface\\Icons\\Spell_Nature_NullifyDisease"] = {
			["name"] = "驱除疾病",
			["duration"] = 20,
			["multiplier"] = 1,
		},
		["Interface\\Icons\\Spell_Shadow_ShadowWordPain"] = {
			["name"] = "暗言术：痛",
			["duration"] = 18,
			["multiplier"] = 1,
		},
		["Interface\\Icons\\Spell_Shadow_PsychicScream"] = {
			["name"] = "Psychic Scream",
			["duration"] = 8,
			["multiplier"] = 1,
		},
		["Interface\\Icons\\Spell_Shadow_BlackPlague"] = {
			["name"] = "噬灵瘟疫",
			["duration"] = 24,
			["multiplier"] = 1,
		},
		["Interface\\Icons\\Spell_Holy_Renew"] = {
			["name"] = "恢复",
			["duration"] = 15,
			["multiplier"] = 1,
		},
		["Interface\\Icons\\Spell_Holy_PowerWordShield"] = {
			["name"] = "真言术：盾",
			["duration"] = 15,
			["multiplier"] = 1,
		},
		["Interface\\Icons\\Spell_Shadow_FingerOfDeath"] = {
			["name"] = "虚弱妖术",
			["duration"] = 2,
			["multiplier"] = 60,
		},
		["Interface\\Icons\\Spell_Shadow_UnsummonBuilding"] = {
			["name"] = "吸血鬼的拥抱",
			["duration"] = 1,
			["multiplier"] = 60,
		},
		["Interface\\Icons\\Spell_Holy_PowerInfusion"] = {
			["name"] = "能量灌注",
			["duration"] = 15,
			["multiplier"] = 1,
		},
	},
	["DRUID"] = {
		["Interface\\Icons\\Ability_GhoulFrenzy"] = {
			["name"] = "撕扯",
			["duration"] = 12,
			["multiplier"] = 1,
		},
		["Interface\\Icons\\Spell_Nature_FaerieFire"] = {
			["name"] = "精灵之火",
			["duration"] = 40,
			["multiplier"] = 1,
		},
		["Interface\\Icons\\Spell_Nature_Rejuvenation"] = {
			["name"] = "回春术",
			["duration"] = 12,
			["multiplier"] = 1,
		},
		["Interface\\Icons\\Spell_Nature_StrangleVines"] = {
			["name"] = "纠缠根须",
			["duration"] = 12,
			["multiplier"] = 1,
		},
		["Interface\\Icons\\Spell_Nature_NullifyPoison_02"] = {
			["name"] = "驱毒术",
			["duration"] = 8,
			["multiplier"] = 1,
		},
		["Interface\\Icons\\Ability_Druid_Disembowel"] = {
			["name"] = "扫击",
			["duration"] = 9,
			["multiplier"] = 1,
		},
		["Interface\\Icons\\Spell_Nature_Sleep"] = {
			["name"] = "休眠",
			["duration"] = 20,
			["multiplier"] = 1,
		},
		["Interface\\Icons\\Spell_Nature_ResistNature"] = {
			["name"] = "愈合",
			["duration"] = 21,
			["multiplier"] = 1,
		},
		["Interface\\Icons\\Ability_Hunter_BeastSoothe"] = {
			["name"] = "安抚动物",
			["duration"] = 15,
			["multiplier"] = 1,
		},
		["Interface\\Icons\\Spell_Nature_InsectSwarm"] = {
			["name"] = "虫群",
			["duration"] = 12,
			["multiplier"] = 1,
		},
		["Interface\\Icons\\Spell_Nature_StarFall"] = {
			["name"] = "月火术",
			["duration"] = 12,
			["multiplier"] = 1,
		},
		["Interface\\Icons\\Spell_Nature_Lightning"] = {
			["name"] = "激活",
			["duration"] = 20,
			["multiplier"] = 1,
		},
		["Interface\\Icons\\Ability_Hunter_Pet_Bear"] = {
			["name"] = "野性冲锋",
			["duration"] = 4,
			["multiplier"] = 1,
		},
		["Interface\\Icons\\Ability_Druid_ChallangingRoar"] = {
			["name"] = "挑战咆哮",
			["duration"] = 6,
			["multiplier"] = 1,
		},
		["Interface\\Icons\\Ability_Physical_Taunt"] = {
			["name"] = "威吓低吼",
			["duration"] = 6,
			["multiplier"] = 1,
		},
		["Interface\\Icons\\Ability_Druid_Bash"] = {
			["name"] = "重击",
			["duration"] = 3,
			["multiplier"] = 1,
		},
		["Interface\\Icons\\Ability_Druid_DemoralizingRoar"] = {
			["name"] = "挫志咆哮",
			["duration"] = 30,
			["multiplier"] = 1,
		},
		["Interface\\Icons\\Ability_Druid_SupriseAttack"] = {
			["name"] = "突袭",
			["duration"] = 2,
			["multiplier"] = 1,
		},
		["Interface\\Icons\\INV_Relics_IdolofRejuvenation"] = {
			["name"] = "迅捷治愈",
		},
	},
	["HUNTER"] = {
		["Interface\\Icons\\Ability_Hunter_CriticalShot"] = {
			["name"] = "毒蝎钉刺",
			["duration"] = 20,
			["multiplier"] = 1,
		},
		["Interface\\Icons\\Ability_Hunter_Quickshot"] = {
			["name"] = "毒蛇钉刺",
			["duration"] = 15,
			["multiplier"] = 1,
		},
		["Interface\\Icons\\INV_Spear_02"] = {
			["name"] = "Wyvern Sting",
			["duration"] = 12,
			["multiplier"] = 2, --because it is a 12 second sleep and a 12 second DoT
		},
		["Interface\\Icons\\Ability_Rogue_Trip"] = {
			["name"] = "摔绊",
			["duration"] = 10,
			["multiplier"] = 1,
		},
		["Interface\\Icons\\Ability_Hunter_AimedShot"] = {
			["name"] = "蝰蛇钉刺",
			["duration"] = 8,
			["multiplier"] = 1,
		},
		["Interface\\Icons\\Ability_Druid_Cower"] = {
			["name"] = "恐吓野兽",
			["duration"] = 10,
			["multiplier"] = 1,
		},
		["Interface\\Icons\\Spell_Frost_Stun"] = {
			["name"] = "震荡射击",
			["duration"] = 4,
			["multiplier"] = 1,
		},
		["Interface\\Icons\\Ability_Warrior_Challange"] = {
			["name"] = "反击",
			["duration"] = 5,
			["multiplier"] = 1,
		},
		["Interface\\Icons\\Ability_Hunter_SniperShot"] = {
			["name"] = "猎人印记",
			["duration"] = 2,
			["multiplier"] = 60,
		},
	},
	["MAGE"] = {
		["Interface\\Icons\\Spell_Nature_Polymorph"] = {
			["name"] = "变形术",
			["duration"] = 50,
			["multiplier"] = 1,
		},
		["Interface\\Icons\\Spell_Magic_PolymorphPig"] = {
			["name"] = "变形术：猪",
			["duration"] = 50,
			["multiplier"] = 1,
		},
		["Interface\\Icons\\Ability_Hunter_Pet_Turtle"] = {
			["name"] = "变形术：龟",
			["duration"] = 50,
			["multiplier"] = 1,
		},
	},
}

function DoTimer_DefineSpells(class) --creates the lists of spells to watch for for each class.  also defines their aliases for when i implement them.  DO NOT make the names not english!! i look for english names.  only mess with the abbreviations
	local spells,petspells,healspells,enslavespells = {},{},{},{}
	if class == "WARLOCK" then
		spells = {
			["痛苦诅咒"] = 1,
			["疲劳诅咒"] = 1,
			["鲁莽诅咒"] = 1,
			["元素诅咒"] = 1,
			["暗影诅咒"] = 1,
			["虚弱诅咒"] = 1,
			["语言诅咒"] = 1,
			["腐蚀术"] = 1,
			["放逐术"] = 1,
			["献祭"] = 1,
			["生命虹吸"] = 1,
			["厄运诅咒"] = 1,
			["恐惧术"] = 1,
			["恐惧嚎叫"] = 1,
			["死亡缠绕"] = 1,
		}
		petspells = {
			["诱惑"] = 1,
			["法术封锁"] = 1,
		}
		enslavespells = {
			["地狱火"] = 1,
			["奴役恶魔"] = 1,
		}
	elseif class == "DRUID" then
		spells = {
			["纠缠根须"] = 1,
			["精灵之火"] = 1,
			["休眠"] = 1,
			["虫群"] = 1,
			["扫击"] = 1,
			["撕扯"] = 1,
			["安抚动物"] = 1,
			["月火术"] = 1,
			["重击"] = 1,
			["突袭"] = 1,
			["挫志咆哮"] = 1,
			["挑战咆哮"] = 1,
			["低吼"] = 1,
			["野性冲锋"] = 1,
		}
		healspells = {
			["驱毒术"] = 1,
			["愈合"] = 1,
			["回春术"] = 1,
			["激活"] = 1,
		}
	elseif class == "PRIEST" then
		spells = {
			["噬灵瘟疫"] = 1,
			["虚弱妖术"] = 1,
			["安抚心灵"] = 1,
			["心灵尖啸"] = 1,
			["束缚亡灵"] = 1,
			["暗言术：痛"] = 1,
			["吸血鬼的拥抱"] = 1,
		}
		healspells = {
			["驱除疾病"] = 1,
			["真言术：盾"] = 1,
			["恢复"] = 1,
			["能量灌注"] = 1,
		}
	elseif class == "HUNTER" then
		spells = {
			["毒蝎钉刺"] = 1,
			["毒蛇钉刺"] = 1,
			["蝰蛇钉刺"] = 1,
			["摔绊"] = 1,
			["翼龙钉刺"] = 1,
			["恐吓野兽"] = 1,
			["震荡射击"] = 1,
			["反击"] = 1,
			["猎人印记"] = 1,
		}
	elseif class == "MAGE" then
		spells = {
			["变形术"] = 1,
			["变形术：猪"] = 1,
			["变形术：龟"] = 1,
		}
	end
	return spells,petspells,healspells,enslavespells
end
